import React from 'react'
import { Context } from './A'

export default function C() {

  let [count,setCount]= React.useContext(Context)
  return (
    <div>
      <div>C</div>
      <h2>count 的值为{count} </h2>
      <button onClick={()=>{
        setCount(count + 1)
      }}>新增</button>
    </div>
  )
}
